export interface UserInfo {
  id: number
  username: string
  realName: string
  roleName: string
  userType: number // 1: 管理员, 2: 教师, 3: 学生
  avatar?: string
  phone?: string
  email?: string
  createTime?: string
}

export interface FormState {
  username: string
  password: string
  remember: boolean
}

export interface LoginParams {
  username: string
  password: string
}

export interface LoginResult {
  token: string
  userInfo: UserInfo
}

export interface UpdateProfileParams {
  realName: string
  email?: string
  phone?: string
}

export interface ChangePasswordParams {
  oldPassword: string
  newPassword: string
} 